Integrand size = 21, antiderivative size = 369 \[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\frac {2 (a+b \arctan (c x))^2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{d}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{d}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,-1+\frac {2}{1+i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1+i c x}\right )}{2 d}+\frac {b^2 \operatorname {PolyLog}\left (3,-1+\frac {2}{1+i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d} \]
[Out]
Time = 0.31 (sec) , antiderivative size = 369, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4996, 4942, 5108, 5004, 5114, 6745, 4968} \[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\frac {2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right ) (a+b \arctan (c x))^2}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{d}-\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right ) (a+b \arctan (c x))}{d}-\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2}{i c x+1}\right ) (a+b \arctan (c x))}{d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {2}{i c x+1}-1\right ) (a+b \arctan (c x))}{d}+\frac {\log \left (\frac {2}{1-i c x}\right ) (a+b \arctan (c x))^2}{d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{i c x+1}\right )}{2 d}+\frac {b^2 \operatorname {PolyLog}\left (3,\frac {2}{i c x+1}-1\right )}{2 d} \]
[In]
[Out]
Rule 4942
Rule 4968
Rule 4996
Rule 5004
Rule 5108
Rule 5114
Rule 6745
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {(a+b \arctan (c x))^2}{d x}-\frac {e (a+b \arctan (c x))^2}{d (d+e x)}\right ) \, dx \\ & = \frac {\int \frac {(a+b \arctan (c x))^2}{x} \, dx}{d}-\frac {e \int \frac {(a+b \arctan (c x))^2}{d+e x} \, dx}{d} \\ & = \frac {2 (a+b \arctan (c x))^2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{d}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{d}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d}-\frac {(4 b c) \int \frac {(a+b \arctan (c x)) \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{d} \\ & = \frac {2 (a+b \arctan (c x))^2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{d}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{d}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d}+\frac {(2 b c) \int \frac {(a+b \arctan (c x)) \log \left (\frac {2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{d}-\frac {(2 b c) \int \frac {(a+b \arctan (c x)) \log \left (2-\frac {2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{d} \\ & = \frac {2 (a+b \arctan (c x))^2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{d}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{d}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,-1+\frac {2}{1+i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d}+\frac {\left (i b^2 c\right ) \int \frac {\operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{d}-\frac {\left (i b^2 c\right ) \int \frac {\operatorname {PolyLog}\left (2,-1+\frac {2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{d} \\ & = \frac {2 (a+b \arctan (c x))^2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{d}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{d}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{d}-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,-1+\frac {2}{1+i c x}\right )}{d}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1+i c x}\right )}{2 d}+\frac {b^2 \operatorname {PolyLog}\left (3,-1+\frac {2}{1+i c x}\right )}{2 d}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d} \\ \end{align*}
\[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 2.36 (sec) , antiderivative size = 2337, normalized size of antiderivative = 6.33
method | result | size |
parts | \(\text {Expression too large to display}\) | \(2337\) |
derivativedivides | \(\text {Expression too large to display}\) | \(2345\) |
default | \(\text {Expression too large to display}\) | \(2345\) |
[In]
[Out]
\[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )} x} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\int \frac {\left (a + b \operatorname {atan}{\left (c x \right )}\right )^{2}}{x \left (d + e x\right )}\, dx \]
[In]
[Out]
\[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )} x} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )} x} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \arctan (c x))^2}{x (d+e x)} \, dx=\int \frac {{\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )}^2}{x\,\left (d+e\,x\right )} \,d x \]
[In]
[Out]